package com.liqy.api.conf;
/**
 * Created by
 *
 * @auth: liqy
 * on 2022/3/29 13:51.
 * desc:
 */

import com.liqy.api.util.GroovyScriptFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: RouterCacheConfig
 * @Description: 方法与脚本缓存配置
 * @Author: liqy
 * @CreateDate: 2022/3/29 13:51
 * @UpdateUser: liqy
 * @UpdateDate: 2022/3/29  13:51
 * @UpdateRemark: update TODO
 * @Version: 1.0
 */
@Configuration
public class RouterCacheConfig {

    /*@Bean
    public RouterCache routerCache(){
        return new RouterCache();
    }*/

    @Bean
    public GroovyScriptFactory groovyScriptFactory(){
        return GroovyScriptFactory.getInstance();
    }
}
